const initialValues = {
  channels: [],
  // 表格相关的数据
  page: 1,
  pageSize: 10,
  list: [],
  count: 0
}
// 保存文章频道
export default function articleReducer(state = initialValues, active) {
  switch (active.type) {
    case "setChannels":
      return { ...state, channels: active.payload }
    case "getArticles":
      return { ...state, ...active.payload }
    default:
      return state
  }
}
